Platform Explorer / Nuxeo Platform LTS 2016 8.10

Component org.nuxeo.ecm.platform.suggestbox.actions

Contributions

XML Source

<component name="org.nuxeo.ecm.platform.suggestbox.actions">

  <require>org.nuxeo.ecm.platform.actions</require>

  <extension target="org.nuxeo.ecm.platform.actions.ActionService"
    point="actions">

    <documentation>
      Disable the default simple search from Nuxeo and adds a
      suggestion search box instead.
    </documentation>

    <!-- disable suggest box for now, see NXP-15081 -->
    <action id="simple_search_box" enabled="false" />

    <action id="suggest_search_box" order="1" type="template">
      <category>SEARCH_ACTIONS</category>
      <filter-id>isSearchEnabled</filter-id>
      <properties>
        <property name="template">/search/suggestbox.xhtml</property>
        <property name="disableMultipartForm">true</property>
        <property name="minChars">1</property>
        <property name="multiple">false</property>
        <property name="operationId">Search.SuggestersLauncher</property>
        <property name="placeholder">label.suggestion.placeholder</property>
        <property name="readonly">false</property>
        <property name="selectionFormatter">nuxeo.suggestbox.selectedFormatter</property>
        <property name="suggestionFormatter">nuxeo.suggestbox.suggestedFormatter</property>
        <property name="onAddEntryHandler">nuxeo.suggestbox.entryHandler</property>
        <property name="autocomplete">true</property>
        <property name="dropdownCssClass">nx-header-s2-dd</property>
        <property name="containerCssClass">nx-header-s2-ct</property>
        <property name="width">300px</property>
        <property name="translatePlaceholder">true</property>
        <property name="onEnterKeyHandler">nxSuggestHandleEnterKey</property>
      </properties>
    </action>

  </extension>

</component>